package com.haoxiaozhang.hxz_app.business;

import com.haoxiaozhang.hxz_app.bean.Employee;
import com.haoxiaozhang.hxz_app.config.Config;
import com.haoxiaozhang.hxz_app.net.CommonCallback;
import com.zhy.http.okhttp.OkHttpUtils;

import java.util.List;

public class EmployeesBusiness {

    public void listEmployees(int currentPage, CommonCallback<List<Employee>> commonCallback){

        OkHttpUtils
                .get()
                .url(Config.baseURL + "/erpEmployee/info/limit/999/skip/" + currentPage)
                .tag(this)
                .addHeader("oesid","753")
                .build()
                .execute(commonCallback);
    }
}
